package cn.shop.admin.service;

import cn.shop.transcation.merchantRateModule.entity.MerchantRate;
import cn.shop.transcation.merchantUser.mapper.entity.MerchantUser;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 商户用户表(MerchantUser)表服务接口
 *
 * @author jzw
 * @since 2021-11-04 17:17:39
 */
public interface MerchantUserService extends IService<MerchantUser> {

	/**
	 * 删除数据
	 *
	 * @param t       实体类
	 * @param wrapper 删除条件
	 * @return 执行结果
	 * @author jzw
	 * @since 2021/11/15 14:05
	 */
	boolean deleteWithFill(MerchantUser t, Wrapper<MerchantUser> wrapper);

	/**
	 * 批量删除数据
	 *
	 * @param t      实体类
	 * @param idList id 集合
	 * @return 执行结果
	 * @author jzw
	 * @since 2021/11/15 14:05
	 */
	boolean batchDelete(List<Long> idList, MerchantUser t);

	/**
	 * 注册
	 *
	 * @param merchantUser 实体对象
	 * @return 新增结果
	 */
	boolean register(MerchantUser merchantUser);

	/**
	 * 修改数据
	 *
	 * @param merchantUser 实体对象
	 * @return 修改结果
	 */
	boolean update(MerchantUser merchantUser);

	/**
	 * 获取商户加密信息
	 *
	 * @param merchantUser
	 * @return
	 * @author jzw
	 * @since 2022/2/24 14:04
	 */
	Map<String, String> merchantSystemCode(MerchantUser merchantUser);

	/**
	 * 获取商户的游戏名称
	 *
	 * @param id 商户id
	 * @return
	 * @author jzw
	 * @since 2022/2/26 15:52
	 */
	List<Map<String, String>> getGameName(Long id);

	List<Map<String, String>> getAliasName(Long id);

	boolean auditAlias(Long id, Long state);

	/**
	 * 修改费率数据
	 *
	 * @param merchantRate
	 * @return boolean
	 * @author 痴
	 * @since 2022/5/12 16:13
	 */
	boolean updateRate(MerchantRate merchantRate);

	boolean audit(MerchantUser merchantUser);

}

